package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 拉卡拉订单表
 * </p>
 *
 * @author hpiggy
 * @since 2024-12-25
 */
@TableName("lkl_order")
@ApiModel(value = "LklOrder对象", description = "拉卡拉订单表")
@Data
public class LklOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("订单有效期 格式yyyyMMddHHmmss")
    private String orderEfficientTime;

    @ApiModelProperty("订单系统创建订单的时间，格式yyyyMMddHHmmss")
    private String orderCreateTime;

    @ApiModelProperty("商户号")
    private String merchantNo;

    @ApiModelProperty("订单号")
    private String outOrderNo;

    private String payOrderNo;

    @ApiModelProperty("订单金额，单位：分")
    private Long totalAmount;

    @ApiModelProperty("网点名称")
    private String shopName;

    @ApiModelProperty("支付连接")
    private String counterUrl;

    private String channelId;

    @ApiModelProperty("拉卡拉支付状态：0:待支付 1:已支付 2：已失效 3：取消订单")
    private Integer payType;

    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
